<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>
<div class="container" style="width:650px;height:400px;padding-top:50px">
    <div class="jumbotron">
			<form action="<?php echo Yii::app()->request->baseUrl; ?>/notification/singlesend" method="post" accept-charset="utf-8" role="form">
				<h2>单人通知发送</h2>
				<table class="table">  
					<tr>
						<td>
							<div class="input-group">
							  <span class="input-group-addon">@</span>
							  <?php     
								$this->widget('zii.widgets.jui.CJuiAutoComplete', array(     
									'name'=>'to',     
									'source'=>$data,     
									// additional javascript options for the autocomplete plugin     
									'options'=>array(     
												'minLength'=>'2',     
												),
											'htmlOptions'=>array(
												'class'=>"form-control",
												'placeholder'=>"收件人",
												'required'=>"true",
												),     
											));
							?>
							</div>
							
						</td>
					</tr>
					<tr>
						<td>
							<div class="input-group">
								<input type="text" name="title" class="form-control" placeholder="标题" required />
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div class="input-group">
								<textarea name="content" style="width:400px" placeholder="通知内容" required></textarea>
							</div>
						</td>
					</tr>
					
					<tr>
						<td><input class="btn btn-success" type="submit" role="button" value="发送"/></td>
						<td><a class="btn btn-success" href="<?php echo Yii::app()->request->baseUrl; ?>/notification/index" role="button">返回</a></td> 
					</tr>  
				</table>
			</form>
	</div>
</div>

